export const userinfo = ()=>{
    return JSON.parse(localStorage.getItem('logindata')||'{}')
}

export const datetime=(time,fuhao="-")=>{
    const date = new Date(parseInt(time))
    const n = date.getFullYear();
    const y = date.getMonth()+1;
    const r = date.getDate();
    const s = date.getHours();
    const f = date.getMinutes();
    const m = date.getSeconds();
    return `${n}${fuhao}${y}${fuhao}${r}${fuhao}${s}:${f}:${m}`
}